<?php
declare (strict_types=1);

namespace app\command;

use app\model\user\UserBeanLogModel;
use app\model\user\UserEarningsModel;
use think\console\Command;
use think\console\Input;
use think\console\Output;

/**
 * 指令-提现到账情况查询
 * Class CheckOrderTask
 * @package app\command
 */
class CheckDepositTask extends Command
{
    protected function configure()
    {
        $this->setName('check_deposit_task_timeout')->setDescription('the check_deposit_task_timeout command');
    }

    protected function execute(Input $input, Output $output)
    {
        $end_time = time() - 3600 * 24;
        UserEarningsModel::checkDepositAccount($end_time);
        UserBeanLogModel::checkDepositAccount($end_time);
    }
}
